package com.project.bean;

import java.time.LocalDate;

public class OrderBean {
    private int id;
    private String userName;
    //送货时间
    private LocalDate orderDate=LocalDate.now();
    //送货地址
    private String address;

    public OrderBean() {
    }

    public OrderBean(String userName,String address ) {
        this.userName = userName;
        this.address=address;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public LocalDate getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(LocalDate orderDate) {
        this.orderDate = orderDate;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "OrderBean{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", orderDate=" + orderDate +
                ", address='" + address + '\'' +
                '}';
    }
}
